<template>
  <div class="login-page">
    <container-box :metaTitle="routeMeta.title || ''">
      <div class="container" slot="container">
        <div class="modal-wrap">
          <div class="modal-container">
            <div class="modal-header">
              <i class="modal-logo"></i>
              <span>MATRIX MAGIC</span>
            </div>
            <div class="modal-content">
              <div class="modal-title">企业登录</div>
              <mds-input type="email" placeholder="请输入邮箱" size="large" v-model="formValue.email"></mds-input>
              <mds-input type="password" placeholder="请输入密码" size="large" v-model="formValue.password"></mds-input>
              <div class="forget-password">忘记密码</div>
              <mds-button type="primary" size="large" block>登 录</mds-button>
            </div>
          </div>
        </div>
      </div>
    </container-box>
  </div>
</template>

<script>
import ContainerBox from '@/components/ContainerBox'
export default {
  components: {
    ContainerBox
  },
  computed: {
    routeMeta() {
      return this.$route.meta || {}
    }
  },
  data() {
    return {
      formValue: {
        email: '',
        password: ''
      }
    }
  },
  methods: {}
}
</script>
<style lang="scss">
.login-page {
  .containerbox-tab_item {
    position: relative;
  }
}
</style>
<style lang="scss" scoped>
.login-page {
  width: 100%;
  height: 100%;
  .container {
    width: 100%;
    background: url(../../../assets/login_img/login_bg.png) no-repeat center
      center;
    background-size: 100% 100%;
    position: absolute;
    height: 100%;
    .modal-wrap {
      position: absolute;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.6);
      .modal-container {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 480px;
        background: #fff;
        padding: 40px 60px 47px;
        box-shadow: 0px 10px 40px 0px rgba(0, 0, 0, 0.15);
        border-radius: 8px;
        .modal-header {
          padding-bottom: 40px;
          text-align: center;
          border-bottom: solid 1px #d9d9d9;
          .modal-logo {
            display: inline-block;
            width: 48px;
            height: 48px;
            background: url(../../../assets/login_img/logo.png) no-repeat center
              center;
            background-size: 100% 100%;
          }
          span {
            font-size: 24px;
            font-family: DINCondensed-Bold, DINCondensed;
            font-weight: bold;
            color: rgba(53, 64, 82, 1);
            position: relative;
            top: -12px;
            left: 21px;
            letter-spacing: 3px;
          }
        }
        .modal-content {
          .modal-title {
            font-size: 20px;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
            color: rgba(53, 64, 82, 1);
            line-height: 28px;
            margin-top: 31px;
          }
          input {
            margin-top: 16px;
          }
          button {
            margin-top: 16px;
          }
          .forget-password {
            font-size: 14px;
            font-family: PingFangSC-Regular, PingFang SC;
            font-weight: 400;
            color: rgba(3, 100, 255, 1);
            line-height: 22px;
            text-align: right;
            margin-top: 20px;
          }
        }
      }
    }
  }
}
</style>
